<% remote_form_for :valleyer,
  :update => :content_index,
  :url => back_stages_show_admin_url(@valleyer),
  :method => :put,
  :html => {
  :id => 'edit_admin_password_form'
} do |f| %>
  <div id="memu" class="memu">
    <div class="message">
      <dl>
        <dt>原&nbsp;密&nbsp;码：</dt>
        <dd>
          <%= password_field_tag :old_password, "", :class => 'password' %>
          <% if @error != nil %>
            <span class="validation_error"><%= @error %></span>
          <% end %>
        </dd>
      </dl>
      <dl>
        <dt>新&nbsp;密&nbsp;码：</dt>
        <dd><%= f.password_field :password, :value => "", :class => 'password' %></dd>
      </dl>
      <dl>
        <dt>确认密码：</dt>
        <dd><%= f.password_field :password_confirmation, :class => 'password' %></dd>
      </dl>
    </div>
    <div class="other">
      <div>
        <%= link_to_function image_tag('admin/grzy_asking.jpg'), "$('edit_admin_password_form').onsubmit()" %>
      </div>
    </div>
  </div><!-- sessions/new.js-->
<% end %>
